package com.chen.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.blog.model.Score;

import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2022-01-24
 */
public interface ScoreMapper extends BaseMapper<Score> {

    /**
     * 获取不同分数区间下的博客数量
     *
     * @return
     */
    Map<String, Object> findBlogByScore();

    /**
     * 获取指定id博客的分数
     *
     * @param id
     * @return
     */
    Double findScoreById(Integer id);
}
